package com.cloud.sso.common.constant;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Data;
import lombok.Getter;

@Getter
public enum UserState {
    ENABLE("ENABLE", "启用"), DISABLE("DISABLE", "禁用");

    @EnumValue
    @JsonValue
    private String code;

    private String remark;

    UserState() {
    }

    UserState(String remark) {
        this.remark = remark;
    }

    @JsonCreator
    UserState(String code, String remark) {
        this.code = code;
        this.remark = remark;
    }

}
